#include<stdio.h>
struct book
{
	char title[20];
	char author[20];
	char press[20];
	double price;
	int amount;
};
int main(void)
{
	struct book t;
	struct book b[5]={
		{"Jane ","Charo","changj",19.8,10},
		{"Pride","Jane A","sanxia",28.3,20},
		{"heyi","tyguman","huahuo",17.8,40},
		{"shil","tangqi","wenytyi",23.8,23},
		{"zhen","gongzi","nanjing",24.5,45}
	};
	int i,j;
	for(i=1;i<5;i++)
		for(j=0;j<5-i;j++)
			if(b[j+1].price<b[j].price)
			{
				t=b[j+1];
			    b[j+1]=b[j];
				b[j]=t;
			}
			printf("title          author        press        price        amount\n");
			for(i=0;i<5;i++)
				printf("%s%15s%10s%15.1f%10d\n",b[i].title,b[i].author,b[i].press,b[i].price,b[i].amount);
			return 0;
}

